package com.ts.main.mini.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ts.main.mini.dto.OrderPageSearchDto;
import com.ts.main.mini.dto.OrderSearchDto;
import com.ts.main.mini.entity.OrderEntity;
import com.ts.main.mini.vo.OrderDetailsVo;
import com.ts.main.mini.vo.OrderVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author lk
* @createDate 2025-05-16 15:11:43
*/
public interface OrderMapper extends BaseMapper<OrderEntity> {

    List<OrderVo> getOrderPage(@Param("dto") OrderPageSearchDto dto);

    List<OrderVo> getOrderList(@Param("dto") OrderSearchDto dto);

    OrderDetailsVo getOrderDetails(@Param("orderId") Integer orderId);

    OrderVo getOrderByOrderNumber(@Param("orderNumber") String orderNumber);
}




